import http from "@/utils/request";
import config from "@/config";

async function getOrgTree(params) {
	return await http.post(config.API_URL+"/console/organization/treeData",params,{});
}

async function switchUser(params) {
	return await http.post(config.API_URL+"/console/opentest/switchUser",params,{});
}

export default { getOrgTree, switchUser };
